﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="frm_BaseDataList.aspx.cs" Inherits="SaleSystem.BaseData.frm_BaseDataList" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>基础数据管理</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    <ext:PageManager runat="server" ID="PageManager1" />
    <ext:Toolbar runat="server" ID="toolbar1">
        <Items>
                    <ext:Button runat="server" ID="bnSearch" Text="查询" Icon="Reload" Type="Submit" OnClick="bnSearch_Click"></ext:Button>
            <ext:Button runat="server" ID="bnNew" Text="新增" Icon="Add"  ></ext:Button>

        </Items>    
    </ext:Toolbar>
     <ext:SimpleForm runat="server" ID="SimpleForm1" EnableBackgroundColor="true" ShowHeader="false" BodyPadding="10px" ShowBorder="false">
                <Items>
                    <ext:TextBox runat="server" ID="tb_BData_Code" Label="编码" Width="200px"></ext:TextBox>
                    <ext:TextBox runat="server" ID="tb_BData_Name" Label="名称" Width="200px"></ext:TextBox>
                    <ext:DropDownList runat="server" ID="ddl_BData_Type" Label="类型" Width="200px" DataValueField="Code" DataTextField="Name"></ext:DropDownList>
                </Items>
    </ext:SimpleForm>
    <ext:Grid runat="server" ID="gv_List" EnableBackgroundColor="true" Title="基础信息列表"   IsDatabasePaging="true" 
            DataKeyNames="BData_Id,BData_Name" EnableRowNumber="true" 
            onrowcommand="gv_List_RowCommand" AllowPaging="true" 
            onpageindexchange="gv_List_PageIndexChange" 
            onrowdatabound="gv_List_RowDataBound">
    <Columns>
        <ext:BoundField ColumnID="BData_Code" DataField="BData_Code" DataTooltipField="BData_Code" HeaderText="编码" Width="150px" />
        <ext:BoundField ColumnID="BData_Name" DataField="BData_Name" DataTooltipField="BData_Name" HeaderText="名称"  Width="200px"   />
        <ext:BoundField ColumnID="BData_TypeName" DataField="BData_TypeName" DataTooltipField="BData_TypeName" HeaderText="类型" Width="150px"/>   
        <ext:LinkButtonField ColumnID="eidt" CommandName="edit"  Text="编辑" HeaderText="编辑" Width="60px" />
        <ext:LinkButtonField ColumnID="delete" CommandName="Delete" CommandArgument="BData_Id" ConfirmIcon="Question" ConfirmText="确认删除此信息？" Text="删除" HeaderText="删除" Width="60px" />

    </Columns>
    </ext:Grid>
    </div>
    <ext:Window runat="server" ID="win_Content" Popup="false" EnableIFrame="true"   EnableConfirmOnClose="true" Title="新增数据字典" IFrameUrl="about:blank" Target="Parent" IsModal="true" Width="500px" Height="250px"></ext:Window>
    </form> 
</body>
</html>
